<div class="am-u-sm-12 widget main-w">
	<ol class="am-breadcrumb">
		<li><a href="{:url('/admin/index')}">首页</a></li>
		<li><a href="{:url('index')}">调度中心</a></li>
		<li class="am-active">查看订单</li>
	</ol>
	<div class="am-u-sm-12 cl-p">
		<form class="am-form-inline tpl-form-border-form" method="get" action="">
			<div class="am-form-group am-u-sm-2 ">
				<div class="am-u-sm-12 cl-p">
					<input type="text" class="am-form-field" name="order_no" placeholder="请输入订单号" value="{$Think.get.order_no}">
				</div>
			</div>
			{if $order_types}
			<div class="am-form-group am-u-sm-2">
				<div class="am-u-sm-12 cl-p po_relative">
				<input type="hidden" class="car_type_id" name="car_type_id" value="{$item.car_type_id}" />
				<input type="text" class="am-form-field tpl-form-no-bg  car_type"  data-check='require' name="car_type" data-msg="请选择车型" value="{$Think.get.car_type}" placeholder="点击选择车型" readonly="">
				<span class="input-group-addon close-input"><i class="am-icon-close"></i></span>  
				</div>
			</div>
			{else/}
			{/if}
			{if input('param.op')}
			{else/}
			<div class="am-form-group am-u-sm-2 ">
				<div class="am-u-sm-12 cl-p">
					<div class="am-u-sm-12 cl-p po_relative">
						<input type="hidden" class="company_id" name="company_id" value="{$Think.get.company_id}" />
						<input type="text" class="am-form-field company_name"  data-check='require' name="company_name" data-msg="公司/单位不能为空" value="{$Think.get.company_name}" placeholder="点击选择公司/单位" readonly="">
						<span class="input-group-addon close-input"><i class="am-icon-close"></i></span>  
					</div>
				</div>
			</div>
			{/if}
			<div class="am-form-group am-u-sm-3">
				<div class="am-u-sm-3 cl-p">
					<select class="orderertype" style="height: 33px;">
						<option value="1">用车人</option>
						<option value="2">预定人</option>
					</select>
				</div>
				<div class="am-u-sm-9 cl-p">
					<div class="am-u-sm-6 cl-p">
						<input type="text" class="am-form-field passenger" name="passenger_name" placeholder="请输入名称" value="{$Think.get.passenger_name}">
						<!--<input type="hidden" name="passenger_name" class="tpl-form-no-bg orderer" placeholder="请输入名称">-->
					</div>
					<div class="am-u-sm-6 cl-p">
						<input type="number" name="passenger_phone" class="am-form-field" placeholder="手机号" value="{$Think.get.passenger_phone}"/>
					</div>
				</div>
			</div>

			<div class="am-form-group am-u-sm-3">
				<button type="submit" class="am-btn am-btn-sm am-btn-primary am-radius" >查询<i class="am-icon-search"></i></button>
				<button type="button" id="more" class="am-btn am-btn-sm am-btn-secondary am-radius" >更多查询条件</button>
			</div>
			<div id="showmore" style="display: none;">
				<div class="am-u-sm-12" style="padding:5px 0;">
					<div class="am-u-sm-3">
						<div class="am-u-sm-12 cl-p">
							<div class="am-u-sm-6 cl-p">
								<div class="am-u-sm-11 cl-p">
									<input type="text" class="am-form-field tpl-form-no-bg order_start" name="order_start" value="{$Think.get.order_start}" placeholder="用车日期起始" data-am-datepicker="" readonly="">
								</div>
								<div class="am-u-sm-1 cl-p" style="text-align: center;">-</div>
							</div>
							<div class="am-u-sm-6 cl-p">
								<div class="am-u-sm-12 cl-p">
									<input type="text" class="am-form-field tpl-form-no-bg order_end" name="order_end" value="{$Think.get.order_end}" placeholder="用车日期结束" data-am-datepicker="" readonly="">
								</div>
							</div>
						</div>
					</div>
					<div class="am-u-sm-2 cl-p">
						<div class="am-u-sm-12 ">
							<select name="year" >
								<option value="" {$Think.get.year?"":selected}>请选择年份</option>  
								<option {$Think.get.year==2017?selected:''} value="2017">2017</option>
								<option {$Think.get.year==2018?selected:''} value="2018">2018</option>
							</select>
						</div>
					</div>
					<div class="am-u-sm-6 cl-p">&nbsp;</div>
				</div>
			</div>
		</form>
	</div>
	<div class="am-u-sm-12" style="padding:10px 0 0 10px;">

		<div class="am-tabs">
			<div class="amnav">
				<ul class="am-tabs-nav am-nav am-nav-tabs">
					{if input('param.order_state')}
					<li class={:input( 'param.order_state')==='0'? 'am-active': " "}>
						<a href="{:url('index',['order_state'=>0, 'op'=> $op, 'company_id' => $company_id])}">全部</a>
					</li>
					{else/}
					<li class='am-active'>
						<a href="{:url('index',['order_state'=>0, 'op'=> $op, 'company_id' => $company_id])}">全部</a>
					</li>
					{/if}
					{foreach $order_states AS $oskey => $ostxt}
						{if condition="is_array($ostxt)"}
							<li class={:input( 'param.order_state')===$ostxt['key']? 'am-active': " "}>
								<a href="{:url('index',['order_state'=>$ostxt['key'], 'op'=> $op, 'company_id' => $company_id])}">{$ostxt['name']}</a>
							</li>
						{else /}
							<li class={:input( 'param.order_state')===($oskey . '')? 'am-active': " "}>
								<a href="{:url('index',['order_state'=>$oskey, 'op'=> $op, 'company_id' => $company_id])}">{$ostxt}</a>
							</li>
						{/if}
					{/foreach}
				</ul>
			</div>
			<div class="am-tabs-bd" style="width: 100%;">
				<div class="am-u-sm-12 cl-p">
					<!--待审核   已拒绝   已批准-->
					{if input('param.order_state')==1||input('param.order_state')==3||input('param.order_state')==2}
					<!--<div><button style="float: right;" type="button" class="am-btn am-btn-default am-radius am-btn-xs" style="margin-top: -2px;">导出文件</button></div>-->
					<div class="am-u-sm-12 am-scrollable-horizontal"  style="padding: 10px;">
					<table class="am-table am-table-compact am-table-bordered am-table-radius am-table-striped tpl-table-black am-text-nowrap" style="transition: height 2s;">
						<thead>
							<tr>
								<th>订单号</th>
								<th>计划出发时间</th>
								<th>申请时间</th>
								<th>批准时间</th>
								<th>接单时间</th>
								<th>订单类型</th>
								<th>下单车型</th>
								<th>申请人</th>
								<th>审核人</th>
								<th>出发地</th>
								<th>目的地</th>
								<th>用车类型</th>
								<th>用车说明</th>
								<th>订单状态</th>
								{if input('param.order_state')==2||input('param.order_state')==1}
								<th>操作</th>
								{/if}
							</tr>
						</thead>
						<tbody>
							{foreach $list as $key => $item}
							<tr data-id='{$item.order_id}'>
								<td>
									<a href="{:url('detail',['order_id'=>$item.order_id])}">{$item.order_no?:'无订单'}</a>
								</td>
								<td>{$item.plan_time?:'-'}</td>
								<td>{$item.apply_time?:"-"}</td>
								<td>{$item.approval_time?:"-"}</td>
								<td>{$item.orders_time?:"-"}</td>
								<td style="<?=($item['use_type'] == 1 ? 'color: #4caf50;' : '');?>">
									{if $item.booking_type==1} 订车 {elseif $item.booking_type==2/} 包车 {elseif $item.booking_type==3/} 租赁 {/if}-
									{if $item.pay_type==3} 公务 {elseif $item.pay_type==2/} 单位 {elseif $item.pay_type==1/} 个人 {/if}-
									{if $item.use_type==1} 行政执法 {elseif $item.use_type==2/} 特殊公务 {elseif $item.use_type==3/} 重要会议 {elseif $item.use_type==4/} 机要通讯 {elseif $item.use_type==5/} 视察调研 {else/} 公务接待 {/if}
								</td>
								<td>{$item.o_car_type_name}</td>
								<td>{$item.orderer}</td>
								<td>{$item.approval}</td>
								<td class="td-address-max">{$item.from_addr?:'暂无出发地'}</td>
								<td class="td-address-max">{$item.to_addr?:'暂无出发地'}</td>
								<td>{if $item.use_type==1} 行政执法 {elseif $item.use_type==2/} 特殊公务 {elseif $item.use_type==3/} 重要会议 {elseif $item.use_type==4/} 机要通讯 {elseif $item.use_type==5/} 视察调研 {else/} 公务接待 {/if}
								</td>
								<td>{$item.use_explain}</td>
								<td>
									{if $item.order_state==1} 待审批 {elseif $item.order_state==2/} 已批准 {elseif $item.order_state==3/} 已拒绝 {elseif $item.order_state==4/} 待用车 {elseif $item.order_state==5/} 已派车 {elseif $item.order_state==6/} 接驾中 {elseif $item.order_state==7/} 已到达出发地 {elseif $item.order_state==8/} 已到达目的地 {elseif $item.order_state==9/} 待支付 {elseif $item.order_state==10/} 待评价 {elseif $item.order_state==11/} 已完成 {elseif $item.order_state==12/} 已取消 {elseif $item.order_state==13/} 已终止 {else/} 无效 {/if}
								</td>
								{if input('param.order_state')==2}
								<td>
									<div class="tpl-table-black-operation">
										<a href="{:url('dispatch',['order_id'=>$item.order_id])}">
											<i class="am-icon-pencil"></i> 派车
										</a>
										<a href="{:url('dispatch',['order_id'=>$item.order_id])}?chedui=1">
											<i class="am-icon-pencil"></i> 车队派单
										</a>
										<a href="javascript:;" class="tpl-table-black-operation-del cancel" data-method="cancel">
											<i class="am-icon-pencil"></i> 取消
										</a>
									</div>
								</td>
								{elseif input('param.order_state')==1/}
								<td>
									<div class="tpl-table-black-operation">
										<a class="firstcheck" data-checklevel='1'>
											初审
										</a>
										<a class="check" >
											审批
										</a>
									</div>
								</td>
								{/if}
								
							</tr>
							{/foreach}

						</tbody>
					</table>
					</div>
					<div class="am-u-lg-12 am-cf">

						<div class="am-fr">
							{$pager}
						</div>
					</div>
					
					<!--全部  代用车-->
					{elseif input('param.order_state')==0||input('param.order_state')==4||!input('param.order_state')/}
					<div>
						<div style="padding: 10px;" class="am-u-sm-12 am-scrollable-horizontal">
							<!--<div><button style="float: right;" type="button" class="am-btn am-btn-default am-radius am-btn-xs" style="margin-top: -2px;">导出文件</button></div>-->
							<table width="100%" class="am-table am-table-compact am-table-bordered am-table-radius am-table-striped tpl-table-black am-text-nowrap">
								<thead>
									<tr>
										<th>订单号</th>
										<th>计划出发时间</th>
										<th>结束时间</th>
										<!--<th>批准时间</th>-->
										<!--<th>接单时间</th>-->
										<th>支付类型</th>
										<th>下单车型</th>
										<th>已派车型</th>
										<!--<th>订单类型</th>-->
										<th>订单类别</th>
										<th>乘客</th>
										<th>司机</th>
										<th>出发地</th>
										<th>目的地</th>
										<th>状态</th>
										<th>操作</th>
									</tr>
								</thead>
								<tbody>
									{foreach $list as $key => $item}
										{switch name="item.order_state"}
											{case value="2" break="1"}
												<tr data-id='{$item.order_id}' style="color: #ff9800;">
											{/case}
											{case value="3" break="1"}
												<tr data-id='{$item.order_id}' style="color: #ddd;">
											{/case}
											{case value="4" break="1"}
												<tr data-id='{$item.order_id}' style="color: red;">
											{/case}
											{case value="5" break="0"}{/case}
											{case value="6" break="0"}{/case}
											{case value="7" break="0"}{/case}
											{case value="8" break="0"}{/case}
											{case value="9" break="1"}
												<tr data-id='{$item.order_id}' style="color: green;">
											{/case}
											{case value="12" break="1"}
												<tr data-id='{$item.order_id}' style="color: #ddd;">
											{/case}
											{default /}
												<tr data-id='{$item.order_id}' style="color: #555;">
										{/switch}
										<td>
											<a href="{:url('detail',['order_id'=>$item.order_id])}">{$item.order_no?:'无订单'}</a>
										</td>
										<td>{$item.plan_time?:'-'}</td>
										<td>{$item.arrival_time?:"-"}</td>
										<!--<td>{$item.approval_time?:"-"}</td>-->
										<!--<td>{$item.orders_time?:"-"}</td>-->
										<td>
											{if $item.pay_type==1} 个人 {elseif $item.pay_type==2/} 单位支付 {elseif $item.pay_type==3/} 财政支付 {elseif $item.pay_type==4/} 自有用车{/if}
										</td>
										<td>{$item.o_car_type_name}</td>
										<td>{$item.car_type_name}</td>
										<td style="<?=($item['use_type'] == 1 ? 'color: #4caf50;' : '');?>">
											{if $item.booking_type==1} 订车 {elseif $item.booking_type==2/} 包车 {elseif $item.booking_type==3/} 租赁 {/if}-
											{if $item.pay_type==3} 公务 {elseif $item.pay_type==2/} 单位 {elseif $item.pay_type==1/} 个人 {/if}-
											{if $item.use_type==1} 行政执法 {elseif $item.use_type==2/} 特殊公务 {elseif $item.use_type==3/} 重要会议 {elseif $item.use_type==4/} 机要通讯 {elseif $item.use_type==5/} 视察调研 {else/} 公务接待 {/if}
										</td>
										<!--<td>{$item.order_type}</td>-->
										<td><a href="{:url('/admin/passenger/detail',['passenger_id'=>$item.passenger_id])}">{$item.passenger_name}</a>（{$item.company_name}）</td>
										<td><a href="{:url('/admin/driver/detail',['driver_id'=>$item.driver_id])}">{$item.driver_name}</a></td>
										<td class="td-address-max">{$item.from_addr?:'暂无出发地'}</td>
										<td class="td-address-max">{$item.to_addr?:'暂无出发地'}</td>
										<td>
											{if $item.order_state==1} 待审批 {elseif $item.order_state==2/} 已批准 {elseif $item.order_state==3/} 已拒绝 {elseif $item.order_state==4/} 待用车 {elseif $item.order_state==5/} 已派车 {elseif $item.order_state==6/} 接驾中 {elseif $item.order_state==7/} {if $item.go_time}任务中{else/}已到达出发地 {/if}{elseif $item.order_state==8/} 已到达目的地 {elseif $item.order_state==9/} 待支付 {elseif $item.order_state==10/} 待评价 {elseif $item.order_state==11/} 已完成 {elseif $item.order_state==12/} 已取消 {elseif $item.order_state==13/} 已终止 {else/} 无效 {/if}
										</td>
										<td>
											<div class="tpl-table-black-operation">
												{if $item.order_state==1}
													
													{if $item.order_state>=8}{else/}
													<a href="javascript:;" class="tpl-table-black-operation-del cancel" data-method="cancel">
														<i class="am-icon-pencil"></i> 取消
													</a>
													{/if} 
													{elseif $item.order_state==3/}
													<a href="javascript:;" class="tpl-table-black-operation-del cancel" data-method="cancel">
														<i class="am-icon-pencil"></i> 取消
													</a>
													{elseif $item.order_state==2||$item.order_state==4/}
													<a href="{:url('dispatch',['order_id'=>$item.order_id])}">
														<i class="am-icon-pencil"></i> 派车
													</a>
													<a href="javascript:;" class="tpl-table-black-operation-del cancel" data-method="cancel">
														<i class="am-icon-pencil"></i> 取消
													</a>
													{else/}
													{if $item.order_state>=8}
													{if $item.order_state==12}
													已取消
													{else/}
													<a class="showmap" data-method="showmap" href="javascript:;">
														<i class="am-icon-map"></i> 轨迹
													</a>
													{/if} 
													{/if}
													{if $item.order_state == 7 && $item.go_time}
														<a class="showmap" data-method="showmap" href="javascript:;">
															<i class="am-icon-map"></i> 轨迹
														</a>
													{/if}
													{if $item.order_state>8}{else/}
													
													<a href="javascript:;" class="tpl-table-black-operation-del cancel" data-method="cancel">
														<i class="am-icon-pencil"></i> 取消
													</a>
													{/if} 
												{/if}
											</div>
										</td>
									</tr>
									{/foreach}
								</tbody>
							</table>
						</div>
						<div class="am-u-lg-12 am-cf">
							<div class="am-fr">
								{$pager}
							</div>
						</div>
						
					</div>
					<!--已派车 接驾中-->
					{elseif input('param.order_state')==5||input('param.order_state')==6/}
					<div>
						<div style="padding: 10px;" class="am-u-sm-12 am-scrollable-horizontal">
							<!--<div><button style="float: right;" type="button" class="am-btn am-btn-default am-radius am-btn-xs" style="margin-top: -2px;">导出文件</button></div>-->
							<table width="100%" class="am-table am-table-compact am-table-bordered am-table-radius am-table-striped tpl-table-black am-text-nowrap">
								<thead>
									<tr>
										<th>订单号</th>
										<th>计划出发时间</th>
										<th>到达出发地时间</th>
										<th>实际出发时间</th>
										<th>订单类型</th>
										<th>乘客</th>
										<th>司机</th>
										<th>出发地</th>
										<th>目的地</th>
										<th>操作</th>
									</tr>
								</thead>
								<tbody>
									
									{foreach $list as $key => $item}
									<tr data-id='{$item.order_id}'>
										<td>
											<a href="{:url('detail',['order_id'=>$item.order_id])}">{$item.order_no?:'无订单'}</a>
										</td>
										<td>{$item.plan_time?:'-'}</td>
										<td>{$item.arrive_time?:($item['wait_time']?:'-')}</td>
										<td>{$item.ride_time?:($item['go_time']?:'-')}</td>
										<td style="<?=($item['use_type'] == 1 ? 'color: #4caf50;' : '');?>">
											{if $item.booking_type==1} 订车 {elseif $item.booking_type==2/} 包车 {elseif $item.booking_type==3/} 租赁 {/if}-
											{if $item.pay_type==3} 公务 {elseif $item.pay_type==2/} 单位 {elseif $item.pay_type==1/} 个人 {/if}-
											{if $item.use_type==1} 行政执法 {elseif $item.use_type==2/} 特殊公务 {elseif $item.use_type==3/} 重要会议 {elseif $item.use_type==4/} 机要通讯 {elseif $item.use_type==5/} 视察调研 {else/} 公务接待 {/if}
										</td>
										</td>
										<td><a href="{:url('/admin/passenger/detail',['passenger_id'=>$item.passenger_id])}">{$item.passenger_name}</a>（{$item.company_name}）</td>
										<td><a href="{:url('/admin/driver/detail',['driver_id'=>$item.driver_id])}">{$item.driver_name}</a></td>
										<td class="td-address-max">{$item.from_addr?:'暂无出发地'}</td>
										<td class="td-address-max">{$item.to_addr?:'暂无出发地'}</td>
										<td>
											<div class="tpl-table-black-operation">
												<a href="{:url('dispatch',['order_id'=>$item.order_id])}" class="changedriver">
													<i class="am-icon-car"></i>改派

												</a>
												<a href="javascript:;" class="tpl-table-black-operation-del cancel" data-method="cancel">
													<i class="am-icon-pencil"></i> 取消
												</a>
											</div>
										</td>
									</tr>
									{/foreach}
								</tbody>
							</table>
						</div>
							<div class="am-u-lg-12 am-cf">

								<div class="am-fr">
									{$pager}
								</div>
							</div>
						

					</div>
					{else/}
					<!--其他状态-->
					<div>
						<div style="padding: 10px;" class="am-u-sm-12 am-scrollable-horizontal">
							<!--<div><button style="float: right;" type="button" class="am-btn am-btn-default am-radius am-btn-xs" style="margin-top: -2px;">导出文件</button></div>-->
							<table width="100%" class="am-table am-table-compact am-table-bordered am-table-radius am-table-striped tpl-table-black am-text-nowrap">
								<thead>
									<tr>
										<th>订单号</th>
										<th>计划出发时间</th>
										<th>到达出发地时间</th>
										<th>实际出发时间</th>
										<th>订单结束时间</th>
										<th>订单类型</th>
										<th>乘客</th>
										<th>司机</th>
										<th>里程</th>
										<th>耗时</th>
										<th>费用</th>
										<th>状态</th>
										<th>操作</th>
									</tr>
								</thead>
								<tbody>
									{foreach $list as $key => $item}
										{switch name="item.order_state"}
											{case value="2" break="1"}
											<tr data-id='{$item.order_id}' style="color: #ff9800;">
												{/case}
												{case value="3" break="1"}
											<tr data-id='{$item.order_id}' style="color: #ddd;">
												{/case}
												{case value="4" break="1"}
											<tr data-id='{$item.order_id}' style="color: red;">
												{/case}
												{case value="5" break="0"}{/case}
												{case value="6" break="0"}{/case}
												{case value="7" break="0"}{/case}
												{case value="8" break="0"}{/case}
												{case value="9" break="1"}
											<tr data-id='{$item.order_id}' style="color: green;">
												{/case}
												{case value="12" break="1"}
											<tr data-id='{$item.order_id}' style="color: #ddd;">
												{/case}
												{default /}
											<tr data-id='{$item.order_id}' style="color: #555;">
										{/switch}
										<td>
											<a href="{:url('detail',['order_id'=>$item.order_id])}">{$item.order_no?:'无订单'}</a>
										</td>
										<td>{$item.plan_time}</td>
										<td>{$item.arrive_time}</td>
										<td>{$item.ride_time}</td>
										<td>{$item.arrival_time}</td>
										<td style="<?=($item['use_type'] == 1 ? 'color: #4caf50;' : '');?>">
											{if $item.booking_type==1} 订车 {elseif $item.booking_type==2/} 包车 {elseif $item.booking_type==3/} 租赁 {/if}-
											{if $item.pay_type==3} 公务 {elseif $item.pay_type==2/} 单位 {elseif $item.pay_type==1/} 个人 {/if}-
											{if $item.use_type==1} 行政执法 {elseif $item.use_type==2/} 特殊公务 {elseif $item.use_type==3/} 重要会议 {elseif $item.use_type==4/} 机要通讯 {elseif $item.use_type==5/} 视察调研 {else/} 公务接待 {/if}
										</td>
										<td><a href="{:url('/admin/passenger/detail',['passenger_id'=>$item.passenger_id])}">{$item.passenger_name}</a>（{$item.company_name}）</td>
										<td><a href="{:url('/admin/driver/detail',['driver_id'=>$item.driver_id])}">{$item.driver_name}</a></td>
										<td>{$item.meter|round=###/1000,2|default=0}</td>
										<td>{if intval($item.use_time/3600)==0}{else/}{:intval($item.use_time/3600)}小时{/if}{:intval(($item.use_time-intval($item.use_time/3600)*3600)/60)}分钟</td>
										<td>{$item.passenger_money}</td>
										<td>
											{if $item.order_state==1} 待审批 {elseif $item.order_state==2/} 已批准 {elseif $item.order_state==3/} 已拒绝 {elseif $item.order_state==4/} 待用车 {elseif $item.order_state==5/} 已派车 {elseif $item.order_state==6/} 接驾中 {elseif $item.order_state==7/} 已到达出发地 {elseif $item.order_state==8/} 已到达目的地 {elseif $item.order_state==9/} 待支付 {elseif $item.order_state==10/} 待评价 {elseif $item.order_state==11/} 已完成 {elseif $item.order_state==12/} 已取消 {elseif $item.order_state==13/} 已终止 {else/} 无效 {/if}
										</td>
										<td>
											<div class="tpl-table-black-operation">
												{if $item.order_state==7}
												<a class="showmap" data-method="showmap" href="javascript:;">
													<i class="am-icon-map"></i> 轨迹
												</a>
												<a href="{:url('dispatch',['order_id'=>$item.order_id])}" class="changedriver">
														<i class="am-icon-car"></i>改派
												</a>
												{/if} 
												{if $item.order_state>=8}
												{if $item.order_state==12}
												已取消
												{else/}
												<a class="showmap" data-method="showmap" href="javascript:;">
													<i class="am-icon-map"></i> 轨迹
												</a>
												{/if} 
												{/if} 
												{if $item.order_state>8}{else/}
												{if $item.order_state==2||$item.order_state==4}
												<a href="{:url('dispatch',['order_id'=>$item.order_id])}">
													<i class="am-icon-pencil"></i> 派车
												</a>
												<a href="javascript:;" class="tpl-table-black-operation-del cancel" data-method="cancel">
													<i class="am-icon-pencil"></i> 取消
												</a>
												{else/}
												<a href="javascript:;" class="tpl-table-black-operation-del cancel" data-method="cancel">
													<i class="am-icon-pencil"></i> 取消
												</a>
												{/if}
												{/if}
												<!--支付前可取消（免单）2018-08-27 BY 发仔-->
												{if $item.order_state==9}
												<a href="javascript:;" class="setFree">
													免单
												</a>
												<a href="javascript:;" class="adminOrderPay">
													应急支付
												</a>
												{/if}
											</div>
										</td>
									</tr>
									{/foreach}

								</tbody>
							</table>
						</div>
							<div class="am-u-lg-12 am-cf">

								<div class="am-fr">
									{$pager}
								</div>
							</div>
						

					</div>
					{/if}
				</div>
			</div>
		</div>
	</div>
	
</div>
<script>
	var url = '{url("api/driver.test/index)}';
</script>
<script type="text/javascript" src="http://webapi.amap.com/maps?v=1.4.2&key={:config('base.mapkey')}&plugin=AMap.Driving"></script>
<script src="//webapi.amap.com/ui/1.0/main.js?v=1.0.11"></script>